package edu.ynu.se.xiecheng.achitectureclass.greenhouse.entity;

import edu.ynu.se.xiecheng.achitectureclass.common.entity.LogicEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Getter
@Setter
@Entity
@Table(name = "greenhouse")
public class Greenhouse extends LogicEntity {

    @Column(unique = true, nullable = false)
    private String greenhouseNumber = "300822040454"; // 大棚编号

    @Column(nullable = false)
    private String name; // 大棚名称

    @Column(nullable = false)
    private String address; // 地址

    @Column(nullable = false)
    private Double area; // 面积（平方米）

    // 可以根据需要添加更多属性
}
